package com.heima.feign.article.fallback;

import com.heima.feign.article.IArticleClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.dtos.CollectionBehaviorDto;
import com.heima.model.behavior.dtos.LikeBehaviorDto;
import com.heima.model.behavior.dtos.ReadBehaviorDto;
import com.heima.model.comment.dto.CommentConfigDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.GraphicDataParametersDto;
import com.heima.model.wemedia.dtos.WmCommentDto;
import com.heima.model.wemedia.pojos.NewPage;
import org.springframework.stereotype.Component;

/**
 * @author jack
 * @data 2024 15:05
 */
@Component
public class ArticleClientFallback implements IArticleClient {
    /**
     * 新增或修改app文章信息
     *
     * @param articleDto
     * @return
     */
    @Override
    public ResponseResult saveArticle(ArticleDto articleDto) {
        return ResponseResult.okResult("服务器正忙!");
    }

    @Override
    public ResponseResult updateCommentStatus(CommentConfigDto wmUpdateStatusDto) {
        return ResponseResult.okResult("服务器正忙!");
    }
        @Override
        public PageResponseResult getComments (WmCommentDto wmCommentDto){
            return null;
        }

    @Override
    public ResponseResult addLike(LikeBehaviorDto likeBehaviorDto) {
        return ResponseResult.okResult("服务器正忙!");
    }

    @Override
    public ResponseResult<?> findArticleConfigByArticleId(Long articleId) {
        return ResponseResult.okResult("服务器正忙!");
    }

    @Override
    public ResponseResult readBehavior(ReadBehaviorDto readBehaviorDto) {
        return ResponseResult.okResult("服务器正忙!");
    }

    /**
     * 添加收藏数量
     *
     * @param collectionBehaviorDto 集合行为dto
     * @return {@link ResponseResult}
     */
    @Override
    public ResponseResult addCollection(CollectionBehaviorDto collectionBehaviorDto) {
        return ResponseResult.okResult("服务器正忙");
    }

    @Override
    public ResponseResult addComment(Long articleId) {
        return ResponseResult.okResult("服务器正忙");
    }

    @Override
    public ResponseResult graphicAndTextualData(GraphicDataParametersDto graphicDataParametersDto) {
        return ResponseResult.okResult("服务器正忙");
    }

    @Override
    public void deletingCommentsReducesComments(Long entryId, Long count) {
    }

    @Override
    public PageResponseResult newPage(NewPage newPageDto) {
        return null;
    }
}
